/**
 * Copyright (c) 2015-2017, Henry Yang 杨勇 (gismail@foxmail.com).
 * <p>
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 * <p>
 * http://www.apache.org/licenses/LICENSE-2.0
 * <p>
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package com.lambkit.module.pay.rpc.model.sql;

import com.lambkit.db.sql.ConditionMode;
import com.lambkit.db.sql.column.Column;
import com.lambkit.db.sql.column.Columns;
import com.lambkit.db.sql.column.Example;

import java.io.Serializable;
import java.util.List;

/**
 * @author Henry 杨勇 (孤竹行) 
 * @website: www.lambkit.com
 * @email: gismail@foxmail.com
 * @date 2019-11-05
 * @version 1.0
 * @since 1.0
 */
public class PayOutOrderCriteria extends Columns implements Serializable {
	private static final long serialVersionUID = 1L;
	
	public static PayOutOrderCriteria create() {
		return new PayOutOrderCriteria();
	}
	
	public static PayOutOrderCriteria create(Column column) {
		PayOutOrderCriteria that = new PayOutOrderCriteria();
		that.add(column);
        return that;
    }

    public static PayOutOrderCriteria create(String name, Object value) {
        return (PayOutOrderCriteria) create().eq(name, value);
    }
    
    public Example example() {
    	return Example.create("pay_out_order", this);
    }
    
    /**
     * equals
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderCriteria eq(String name, Object value) {
    	super.eq(name, value);
        return this;
    }

    /**
     * not equals !=
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderCriteria ne(String name, Object value) {
    	super.ne(name, value);
        return this;
    }


    /**
     * like
     *
     * @param name
     * @param value
     * @return
     */

    public PayOutOrderCriteria like(String name, Object value) {
    	super.like(name, value);
        return this;
    }
    
    public PayOutOrderCriteria notLike(String name, Object value) {
    	super.notLike(name, value);
        return this;
    }

    /**
     * 大于 great than
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderCriteria gt(String name, Object value) {
    	super.gt(name, value);
        return this;
    }

    /**
     * 大于等于 great or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderCriteria ge(String name, Object value) {
    	super.ge(name, value);
        return this;
    }

    /**
     * 小于 less than
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderCriteria lt(String name, Object value) {
    	super.lt(name, value);
        return this;
    }

    /**
     * 小于等于 less or equal
     *
     * @param name
     * @param value
     * @return
     */
    public PayOutOrderCriteria le(String name, Object value) {
    	super.le(name, value);
        return this;
    }
    
    public PayOutOrderCriteria isnull(String name) {
    	super.isnull(name);
        return this;
    } 

    public PayOutOrderCriteria notNull(String name) {
    	super.notNull(name);
        return this;
    } 
    
    public PayOutOrderCriteria empty(String name) {
    	super.empty(name);
        return this;
    } 
    
    public PayOutOrderCriteria notEmpty(String name) {
    	super.notEmpty(name);
        return this;
    } 
    
    public PayOutOrderCriteria add(Column column) {
    	super.add(column);
    	return this;
    }
    
    /**************************/
	
	public void addCriterion(String name, Object value, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value == null) {
			 throw new RuntimeException("Value for " + property + " cannot be null");
		 }
		 add(Column.create(name, value, logic, typeHandler, valueType));
	}
   
	public void addCriterion(String name, Object value1, Object value2, ConditionMode logic, String property, String typeHandler, String valueType) {
		 if (value1 == null || value2 == null) {
			 throw new RuntimeException("Between values for " + property + " cannot be null");
		 }
		 add(Column.create(name, value1, value2, logic, typeHandler, valueType));
	}
		 
	public PayOutOrderCriteria andPayOutOrderIdIsNull() {
		isnull("pay_out_order_id");
		return this;
	}
	
	public PayOutOrderCriteria andPayOutOrderIdIsNotNull() {
		notNull("pay_out_order_id");
		return this;
	}
	
	public PayOutOrderCriteria andPayOutOrderIdIsEmpty() {
		empty("pay_out_order_id");
		return this;
	}

	public PayOutOrderCriteria andPayOutOrderIdIsNotEmpty() {
		notEmpty("pay_out_order_id");
		return this;
	}
       public PayOutOrderCriteria andPayOutOrderIdEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_id", value, ConditionMode.EQUAL, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdNotEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_id", value, ConditionMode.NOT_EQUAL, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdGreaterThan(java.lang.Long value) {
          addCriterion("pay_out_order_id", value, ConditionMode.GREATER_THEN, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdGreaterThanOrEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_id", value, ConditionMode.GREATER_EQUAL, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdLessThan(java.lang.Long value) {
          addCriterion("pay_out_order_id", value, ConditionMode.LESS_THEN, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdLessThanOrEqualTo(java.lang.Long value) {
          addCriterion("pay_out_order_id", value, ConditionMode.LESS_EQUAL, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdBetween(java.lang.Long value1, java.lang.Long value2) {
    	  addCriterion("pay_out_order_id", value1, value2, ConditionMode.BETWEEN, "payOutOrderId", "java.lang.Long", "Float");
    	  return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdNotBetween(java.lang.Long value1, java.lang.Long value2) {
          addCriterion("pay_out_order_id", value1, value2, ConditionMode.NOT_BETWEEN, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }
        
      public PayOutOrderCriteria andPayOutOrderIdIn(List<java.lang.Long> values) {
          addCriterion("pay_out_order_id", values, ConditionMode.IN, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayOutOrderIdNotIn(List<java.lang.Long> values) {
          addCriterion("pay_out_order_id", values, ConditionMode.NOT_IN, "payOutOrderId", "java.lang.Long", "Float");
          return this;
      }
	public PayOutOrderCriteria andPayMchIdIsNull() {
		isnull("pay_mch_id");
		return this;
	}
	
	public PayOutOrderCriteria andPayMchIdIsNotNull() {
		notNull("pay_mch_id");
		return this;
	}
	
	public PayOutOrderCriteria andPayMchIdIsEmpty() {
		empty("pay_mch_id");
		return this;
	}

	public PayOutOrderCriteria andPayMchIdIsNotEmpty() {
		notEmpty("pay_mch_id");
		return this;
	}
       public PayOutOrderCriteria andPayMchIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayMchIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.NOT_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayMchIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayMchIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.GREATER_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayMchIdLessThan(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_THEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayMchIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_mch_id", value, ConditionMode.LESS_EQUAL, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayMchIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_mch_id", value1, value2, ConditionMode.BETWEEN, "payMchId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayOutOrderCriteria andPayMchIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_mch_id", value1, value2, ConditionMode.NOT_BETWEEN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayOutOrderCriteria andPayMchIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayMchIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_mch_id", values, ConditionMode.NOT_IN, "payMchId", "java.lang.Integer", "Float");
          return this;
      }
	public PayOutOrderCriteria andPayVendorIdIsNull() {
		isnull("pay_vendor_id");
		return this;
	}
	
	public PayOutOrderCriteria andPayVendorIdIsNotNull() {
		notNull("pay_vendor_id");
		return this;
	}
	
	public PayOutOrderCriteria andPayVendorIdIsEmpty() {
		empty("pay_vendor_id");
		return this;
	}

	public PayOutOrderCriteria andPayVendorIdIsNotEmpty() {
		notEmpty("pay_vendor_id");
		return this;
	}
       public PayOutOrderCriteria andPayVendorIdEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayVendorIdNotEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.NOT_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayVendorIdGreaterThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayVendorIdGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.GREATER_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayVendorIdLessThan(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_THEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayVendorIdLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("pay_vendor_id", value, ConditionMode.LESS_EQUAL, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayVendorIdBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("pay_vendor_id", value1, value2, ConditionMode.BETWEEN, "payVendorId", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayOutOrderCriteria andPayVendorIdNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("pay_vendor_id", value1, value2, ConditionMode.NOT_BETWEEN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayOutOrderCriteria andPayVendorIdIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andPayVendorIdNotIn(List<java.lang.Integer> values) {
          addCriterion("pay_vendor_id", values, ConditionMode.NOT_IN, "payVendorId", "java.lang.Integer", "Float");
          return this;
      }
	public PayOutOrderCriteria andAmountIsNull() {
		isnull("amount");
		return this;
	}
	
	public PayOutOrderCriteria andAmountIsNotNull() {
		notNull("amount");
		return this;
	}
	
	public PayOutOrderCriteria andAmountIsEmpty() {
		empty("amount");
		return this;
	}

	public PayOutOrderCriteria andAmountIsNotEmpty() {
		notEmpty("amount");
		return this;
	}
       public PayOutOrderCriteria andAmountEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayOutOrderCriteria andAmountNotEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.NOT_EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayOutOrderCriteria andAmountGreaterThan(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.GREATER_THEN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayOutOrderCriteria andAmountGreaterThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.GREATER_EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayOutOrderCriteria andAmountLessThan(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.LESS_THEN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayOutOrderCriteria andAmountLessThanOrEqualTo(java.math.BigDecimal value) {
          addCriterion("amount", value, ConditionMode.LESS_EQUAL, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayOutOrderCriteria andAmountBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
    	  addCriterion("amount", value1, value2, ConditionMode.BETWEEN, "amount", "java.math.BigDecimal", "Float");
    	  return this;
      }

      public PayOutOrderCriteria andAmountNotBetween(java.math.BigDecimal value1, java.math.BigDecimal value2) {
          addCriterion("amount", value1, value2, ConditionMode.NOT_BETWEEN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }
        
      public PayOutOrderCriteria andAmountIn(List<java.math.BigDecimal> values) {
          addCriterion("amount", values, ConditionMode.IN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }

      public PayOutOrderCriteria andAmountNotIn(List<java.math.BigDecimal> values) {
          addCriterion("amount", values, ConditionMode.NOT_IN, "amount", "java.math.BigDecimal", "Float");
          return this;
      }
	public PayOutOrderCriteria andStatusIsNull() {
		isnull("status");
		return this;
	}
	
	public PayOutOrderCriteria andStatusIsNotNull() {
		notNull("status");
		return this;
	}
	
	public PayOutOrderCriteria andStatusIsEmpty() {
		empty("status");
		return this;
	}

	public PayOutOrderCriteria andStatusIsNotEmpty() {
		notEmpty("status");
		return this;
	}
       public PayOutOrderCriteria andStatusEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andStatusNotEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.NOT_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andStatusGreaterThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andStatusGreaterThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.GREATER_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andStatusLessThan(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_THEN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andStatusLessThanOrEqualTo(java.lang.Integer value) {
          addCriterion("status", value, ConditionMode.LESS_EQUAL, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andStatusBetween(java.lang.Integer value1, java.lang.Integer value2) {
    	  addCriterion("status", value1, value2, ConditionMode.BETWEEN, "status", "java.lang.Integer", "Float");
    	  return this;
      }

      public PayOutOrderCriteria andStatusNotBetween(java.lang.Integer value1, java.lang.Integer value2) {
          addCriterion("status", value1, value2, ConditionMode.NOT_BETWEEN, "status", "java.lang.Integer", "Float");
          return this;
      }
        
      public PayOutOrderCriteria andStatusIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.IN, "status", "java.lang.Integer", "Float");
          return this;
      }

      public PayOutOrderCriteria andStatusNotIn(List<java.lang.Integer> values) {
          addCriterion("status", values, ConditionMode.NOT_IN, "status", "java.lang.Integer", "Float");
          return this;
      }
	public PayOutOrderCriteria andCtimeIsNull() {
		isnull("ctime");
		return this;
	}
	
	public PayOutOrderCriteria andCtimeIsNotNull() {
		notNull("ctime");
		return this;
	}
	
	public PayOutOrderCriteria andCtimeIsEmpty() {
		empty("ctime");
		return this;
	}

	public PayOutOrderCriteria andCtimeIsNotEmpty() {
		notEmpty("ctime");
		return this;
	}
       public PayOutOrderCriteria andCtimeEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayOutOrderCriteria andCtimeNotEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.NOT_EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayOutOrderCriteria andCtimeGreaterThan(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.GREATER_THEN, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayOutOrderCriteria andCtimeGreaterThanOrEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.GREATER_EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayOutOrderCriteria andCtimeLessThan(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.LESS_THEN, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayOutOrderCriteria andCtimeLessThanOrEqualTo(java.math.BigInteger value) {
          addCriterion("ctime", value, ConditionMode.LESS_EQUAL, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayOutOrderCriteria andCtimeBetween(java.math.BigInteger value1, java.math.BigInteger value2) {
    	  addCriterion("ctime", value1, value2, ConditionMode.BETWEEN, "ctime", "java.math.BigInteger", "String");
    	  return this;
      }

      public PayOutOrderCriteria andCtimeNotBetween(java.math.BigInteger value1, java.math.BigInteger value2) {
          addCriterion("ctime", value1, value2, ConditionMode.NOT_BETWEEN, "ctime", "java.math.BigInteger", "String");
          return this;
      }
        
      public PayOutOrderCriteria andCtimeIn(List<java.math.BigInteger> values) {
          addCriterion("ctime", values, ConditionMode.IN, "ctime", "java.math.BigInteger", "String");
          return this;
      }

      public PayOutOrderCriteria andCtimeNotIn(List<java.math.BigInteger> values) {
          addCriterion("ctime", values, ConditionMode.NOT_IN, "ctime", "java.math.BigInteger", "String");
          return this;
      }
}